X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..79b9da22a1f4b26279940d285c1bc28ce4e99252:/OSX/Keychain%20Circle%20Notification/KNPersistentState.m diff --git a/OSX/Keychain Circle Notification/KNPersistentState.m b/OSX/Keychain Circle Notification/KNPersistentState.m index 458ff973..a5499fd0 100644 --- a/OSX/Keychain Circle Notification/KNPersistentState.m +++ b/OSX/Keychain Circle Notification/KNPersistentState.m @@ -23,6 +23,7 @@ #import "KNPersistentState.h" +#import @implementation KNPersistentState @@ -43,13 +44,13 @@ NSError *error = nil; NSData *stateData = [NSData dataWithContentsOfURL:[state urlForStorage] options:0 error:&error]; if (!stateData) { - NSLog(@"Can't read state data (p=%@, err=%@)", [state urlForStorage], error); + secdebug("kcn", "Can't read state data (p=%@, err=%@)", [state urlForStorage], error); } else { NSPropertyListFormat format; plist = [NSPropertyListSerialization propertyListWithData:stateData options: NSPropertyListMutableContainersAndLeaves format:&format error:&error]; if (plist == nil) { - NSLog(@"Can't deserialize %@, e=%@", stateData, error); + secdebug("kcn", "Can't deserialize %@, e=%@", stateData, error); } } @@ -79,16 +80,16 @@ } mutableCopy]; if (self.debugLeftReason) plist[@"debugLeftReason"] = self.debugLeftReason; - NSLog(@"writeToStorage plist=%@", plist); + secdebug("kcn", "writeToStorage plist=%@", plist); NSError *error = nil; NSData *stateData = [NSPropertyListSerialization dataWithPropertyList:plist format:NSPropertyListXMLFormat_v1_0 options:kCFPropertyListImmutable error:&error]; if (!stateData) { - NSLog(@"Can't serialize %@: %@", plist, error); + secdebug("kcn", "Can't serialize %@: %@", plist, error); return; } if (![stateData writeToURL:[self urlForStorage] options:NSDataWritingAtomic error:&error]) { - NSLog(@"Can't write to %@, error=%@", [self urlForStorage], error); + secdebug("kcn", "Can't write to %@, error=%@", [self urlForStorage], error); } }